package chapter04.demo5;

public class Demo5 {
    class Animal{
        public void shout(){
            System.out.println("发出动物叫声");
        }
    }
    class Dog extends Animal{
        private void shout(){
            System.out.println("喵喵喵......");
        }
    }
    public class Example05{
        public static void main(String[] args){
            Dog dog = new Dog();
            dog.shout();
        }
    }
}
